projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4cf68a
)
Autoload byte-compile-warning-enabled-p
author
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 1 Dec 2021 03:54:59 +0000
(
04:54
+0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 1 Dec 2021 03:55:18 +0000
(
04:55
+0100)
* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-enabled-p):
Autoloads (for easier use in macroexp etc).
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index 5ce5b2952b84c2974c1744cfae910a3bea864290..d6b25e02795321710f4d2fd40397d2dee722829d 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-344,6
+344,7
@@
suppress. For example, (not mapcar) will suppress warnings about mapcar."
(or (symbolp v)
(null (delq nil (mapcar (lambda (x) (not (symbolp x))) v))))))
+;;;###autoload
(defun byte-compile-warning-enabled-p (warning &optional symbol)
"Return non-nil if WARNING is enabled, according to `byte-compile-warnings'."
(let ((suppress nil))